package com.sunnada.poi.excel.base;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @program: poiextended
 * @description: 导出Excel接口
 * @author: 李瑞益
 * @create: 2018-11-06 15:53
 **/
public interface ExportExcel {

    <T> void exportToLocalExcel(int excelVersion, String titleName, List<T> list, Map<String, String> headerNameMap,
                                       String filePath) ;

    <T> void exportToClientExcel(int excelVersion, String titleName, List<T> list, Map<String, String> headerNameMap,
                                        HttpServletResponse response, String fileName) ;

    <T> void exportMultipleToClientExcel(int excelVersion, String titleName, List<List<T>> lists,
                                                Map<Integer,Map<String, String>> headerNameMaps,
                                                HttpServletResponse response,String fileName) ;

    <T> void exportMultipleToLocalExcel(int excelVersion, String titleName, List<List<T>> lists,
                                               List<Map<String, String>> headerNameMaps,
                                               String filePath) ;
}
